Enable Optimistic Locking
This page last changed on Nov 28, 2008.
Oracle Data Service Integrator Documentation > Data Services Developer's Guide How To Enable Optimistic LockingThis topic describes how to enable optimistic locking in order to update a physical relational data source. Set the Locking PolicyDefine the optimistic locking policy on the physical data sources that support your logical data service before you attempt to test an update in Test view or use an update map. Optimistic locking is used with physical data sources that are relational. The current value of optimistic locking is defined in the Optimistic Locking Fields property. You can see this property in the Properties tab in Overview mode. Checking the Optimistic Locking PolicyUpdates to relational data sources use a special XML structure called a data graph. The root element of data graph is <sdo:datagraph>, and the data graph also has a <changeSummary> element. You can use any of these values for Optimistic Locking Fields. They describe how the elements in the data graph compare to fields in the relational data source.
To set the locking policy:
Select the Locking FieldsIf you choose SELECTED FIELDS, you must also select the fields used to verify changes in the data source. You can select any number of non-key fields. The key fields are used to identify the data records to be updated. If you select a complex element, its child elements also become selected elements. You can also disable a field once it is selected. Choosing Fields for Optimistic LockingTo select the fields used for optimistic locking:
When you enable optimistic locking for a field, its icon (in the return type in the Overview tab) changes to (::pragma xds <x:xds targetType="t:CREDITRATING" xmlns:x="urn:annotations.ld.oracle.com" xmlns:t="ld:physical/CREDITRATING"> ... <optimisticLockingFields> <field name="RATING"/> </optimisticLockingFields> See AlsoHow ToConcepts
|
![]() |
Document generated by Confluence on Jan 13, 2009 15:57 |